package com.zhitong.money.services.api;

import com.github.pagehelper.PageInfo;
import com.zhitong.money.entity.Message;

import java.util.List;
import java.util.Map;

/**
 * @Author: Andy Zhang
 * @Description:
 * @Date: 16:34 2021/2/25
 * @Company: wisecard
 */
public interface IMessageService {

    public List<Message> findAllMsg() throws Exception;

    public List<Message> findMsgByMap(Map<String,Object> map) throws Exception;

    public List<Message> findSelfMsg(String tid) throws Exception;

    public PageInfo<Message> findMsgByPage(Map<String,Object> map) throws Exception;

    public Message findMsgById(String id) throws Exception;

    public void addMsg(Map<String,Object> map) throws Exception;

    public void updateMsg(Message message) throws Exception;

    public void delBySelf(String id) throws Exception;

    public void delMsgById(String id) throws Exception;

    public void delMsgByIds(List<String> ids) throws Exception;


}
